<template>
	<view>
		<view v-for="item in computedList" class="recharge_list">
			<view class="left">
				<view>{{item.F1003}}</view>
				<view>{{item.f1006 ? item.f1006 : '重科科技'}}</view>
			</view>
			<view class="right">¥{{item.f1002 ? item.f1002 : 60}}</view>
		</view>
	</view>
</template>

<script>
	import request from '../../utils/request.js'
	export default {
		data() {
			return {
				list: [
					{F1003: '2024-10-10', f1002: '60.00'},
					{F1003: '2024-10-10', f1002: '60.00'},
					{F1003: '2024-10-10', f1002: '60.00'},
					{F1003: '2024-10-10', f1002: '60.00'},
					{F1003: '2024-10-10', f1002: '60.00'},
				]
			}
		},
		methods: {
			
		},
		mounted(){
			request.get('/wx/czrecord').then(res => {
				this.list = res.data.data
			})
		},
		computed: {
		    computedList() {
		      return this.list.map(item => ({
		        ...item,
		        f1006: item.f1006 ? item.f1006 : '重科科技', // 如果f1006存在则使用，否则使用'重科科技'
		      }));
		    },
		  },
	}
</script>

<style scoped lang="scss">
.recharge_list {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150rpx;
	margin: 20rpx 20rpx 0 20rpx;
	background-color: #E3E3E3;
	border-radius: 20rpx;
	.left {
		width: 70%;
	}
	.right {
		color: #4088d0;
	}
}
</style>
